<?php
include('../../../wp-blog-header.php'); 
$param = $_GET['p'];

$param = decrypt($param,'1b2u3z4z5r6');
$param = explode('~',$param);

$event = $param[0];
$brand = pods_sanitize($param[1]);
$deal = pods_sanitize($param[2]);
$redirect = $param[3];

/*
echo "<pre>";
print_r($param);
exit();
*/
?>
<html>
  <title>Buzzr.in | Redirecting Please Wait....</title>
  <head>
  <script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1717133-7']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

  </script>
  <script>
  function delayedRedirect(destination) {
    window.location.href = destination;
  }
  _gaq.push(['_trackEvent', '<?php echo $event; ?>', '<?php echo $brand; ?>', '<?php echo $deal; ?>']);
  </script>
  </head>
  <body onLoad="setTimeout(delayedRedirect('<?php echo $redirect; ?>'), 2000)">
    <div style="text-align: center;"><img src="<?php echo BUZZR_THEME_URL.'/img/buzzrin-logo.png' ;?>" /></div>
    <div style="text-align: center;margin-top:50px;"><img src="<?php echo BUZZR_WP_URL.'/wp-content/pfiles/images/buzzr_spinner.gif'; ?>" /></div>
    <div style="text-align: center;margin-top:50px;">Connecting you to <b><?php echo $brand; ?></b></div>
  </body>
</html>